package com.netty.demo.nio.handler.impl;

import com.netty.demo.protocol.packet.MessagePacket;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class ClientMessageReceiveHandler extends SimpleChannelInboundHandler<MessagePacket> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, MessagePacket messagePacket) throws Exception{
        System.out.println("服务器想你发来消息：" + messagePacket.getMessage());
        System.out.println("输入消息发送至服务端: ");
    }
}
